// components/poster/index.js
Component({
    properties: {
        show: {
            type: Boolean,
            value: false
        },
        poster: String
    },


    data: {

    },

    methods: {

        onTapDialog() {
            this.triggerEvent('poster', { value: true })
        },

        onTapClose() {
            console.log('000')
            this.triggerEvent('close', { value: true })
        },

        handleDialogImageSize(e) {
            const { screenWidth, screenHeight } = wx.getSystemInfoSync()
            const { width: truthWidth, height: truthHeight } = e.detail
            this.setData({
                showWidth: screenWidth * 0.7,
                showHeight: screenWidth * 0.7 * truthHeight / truthWidth
            })
        },
    }
})
